package com.xunji.user.vo.req;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@ApiModel("角色查询vo")
@Data
public class RoleQueryRequest {

    @ApiModelProperty("角色名称")
    private String name;

    @ApiModelProperty("分页条数")
    @NotNull(message = "分页条数不能为空")
    @Min(value = 1, message = "分页条数不能小于1")
    private int pageSize;

    @ApiModelProperty("页码")
    @NotNull(message = "页码不能为空")
    @Min(value = 1, message = "页码不能小于1")
    private int pageNum;
}
